import { Base } from '../../utils/base.js';

class Jqwenda extends Base {
  constructor() {
    super();
  }

  getAnswers(id, callBack) {
    var param = {
      url: 'getAnswers?aid=' + id,
      sCallBack: function (data) {
        callBack && callBack(data);
      }
    };
    this.request(param);
  }

  getAnswersAdd(name, aid, callBack) {
    var param = {
      url: 'getAnswersJing?name=' + name + '&aid=' + aid,
      sCallBack: function (data) {
        callBack && callBack(data);
      }
    };
    this.request(param);
  }

}

export { Jqwenda };